﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020012BB RID: 4795
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SwordTrainingStoryBattleScRsp : IMessage<SwordTrainingStoryBattleScRsp>, IMessage, IEquatable<SwordTrainingStoryBattleScRsp>, IDeepCloneable<SwordTrainingStoryBattleScRsp>, IBufferMessage
	{
		// Token: 0x17003CA7 RID: 15527
		// (get) Token: 0x0600D6E3 RID: 55011 RVA: 0x0024102F File Offset: 0x0023F22F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SwordTrainingStoryBattleScRsp> Parser
		{
			get
			{
				return SwordTrainingStoryBattleScRsp._parser;
			}
		}

		// Token: 0x17003CA8 RID: 15528
		// (get) Token: 0x0600D6E4 RID: 55012 RVA: 0x00241036 File Offset: 0x0023F236
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SwordTrainingStoryBattleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003CA9 RID: 15529
		// (get) Token: 0x0600D6E5 RID: 55013 RVA: 0x00241048 File Offset: 0x0023F248
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SwordTrainingStoryBattleScRsp.Descriptor;
			}
		}

		// Token: 0x0600D6E6 RID: 55014 RVA: 0x0024104F File Offset: 0x0023F24F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingStoryBattleScRsp()
		{
		}

		// Token: 0x0600D6E7 RID: 55015 RVA: 0x00241058 File Offset: 0x0023F258
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingStoryBattleScRsp(SwordTrainingStoryBattleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D6E8 RID: 55016 RVA: 0x002410A4 File Offset: 0x0023F2A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SwordTrainingStoryBattleScRsp Clone()
		{
			return new SwordTrainingStoryBattleScRsp(this);
		}

		// Token: 0x17003CAA RID: 15530
		// (get) Token: 0x0600D6E9 RID: 55017 RVA: 0x002410AC File Offset: 0x0023F2AC
		// (set) Token: 0x0600D6EA RID: 55018 RVA: 0x002410B4 File Offset: 0x0023F2B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003CAB RID: 15531
		// (get) Token: 0x0600D6EB RID: 55019 RVA: 0x002410BD File Offset: 0x0023F2BD
		// (set) Token: 0x0600D6EC RID: 55020 RVA: 0x002410C5 File Offset: 0x0023F2C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600D6ED RID: 55021 RVA: 0x002410CE File Offset: 0x0023F2CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SwordTrainingStoryBattleScRsp);
		}

		// Token: 0x0600D6EE RID: 55022 RVA: 0x002410DC File Offset: 0x0023F2DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SwordTrainingStoryBattleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D6EF RID: 55023 RVA: 0x0024112C File Offset: 0x0023F32C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D6F0 RID: 55024 RVA: 0x00241181 File Offset: 0x0023F381
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D6F1 RID: 55025 RVA: 0x00241189 File Offset: 0x0023F389
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D6F2 RID: 55026 RVA: 0x00241194 File Offset: 0x0023F394
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D6F3 RID: 55027 RVA: 0x002411F0 File Offset: 0x0023F3F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D6F4 RID: 55028 RVA: 0x00241248 File Offset: 0x0023F448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SwordTrainingStoryBattleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D6F5 RID: 55029 RVA: 0x002412B0 File Offset: 0x0023F4B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D6F6 RID: 55030 RVA: 0x002412BC File Offset: 0x0023F4BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 50U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040055B6 RID: 21942
		private static readonly MessageParser<SwordTrainingStoryBattleScRsp> _parser = new MessageParser<SwordTrainingStoryBattleScRsp>(() => new SwordTrainingStoryBattleScRsp());

		// Token: 0x040055B7 RID: 21943
		private UnknownFieldSet _unknownFields;

		// Token: 0x040055B8 RID: 21944
		public const int RetcodeFieldNumber = 3;

		// Token: 0x040055B9 RID: 21945
		private uint retcode_;

		// Token: 0x040055BA RID: 21946
		public const int BattleInfoFieldNumber = 6;

		// Token: 0x040055BB RID: 21947
		private SceneBattleInfo battleInfo_;
	}
}
